<?php
$con = mysql_connect("localhost","cssjsxhtml","cssjsxhtml");
mysql_select_db("cssjsxhtml",$con);

$rs=mysql_query("select * from categories");

$values=array();
$list=mysql_fetch_assoc($rs);
echo "list results:";
foreach($list as $item){
	$values[]=$item;
}
print_r($values,true);

$xml = simplexml_load_file(dirname($_SERVER['SCRIPT_FILENAME'])."/config/model.xml");
$entity = $xml->xpath("entity[@name='user']");
echo "<p>entity : <pre>".print_r($entity,true)."</pre></p>";
$entityfield = $entity[0]->xpath("field[@name='username']");
echo "<p>entity field type<pre>".print_r($entityfield,true)."</pre></p>";
echo "type :".$entityfield[0]->attributes()->type;

?>